package com.yorick.authority.service;

import com.alibaba.fastjson.JSONObject;
import com.yorick.authority.modal.request.department.*;
import com.yorick.authority.modal.response.BaseListResponse;
import com.yorick.common.error.YorickException;

import java.util.Map;

public interface DepartmentService {

    Map<String, Object> addDepartment(DepartmentAddRequest request) throws YorickException;

    BaseListResponse departmentList(DepartmentListRequest request);

    Map<String, Object> editDepartment(DepartmentEditRequest request);

    JSONObject departmentDetail(DepartmentDetailRequest request);

    Map<String, Object> deleteDepartment(DepartmentDeleteRequest request);
}
